export default [
  {
    path: "/dataConnection",
    component: () => import("@/views/layout/home"),
    alwaysShow: true,
    redirect: "/dataConnection/dataSourceManage",
    meta: {
      title: "领域数据接入",
      icon: "el-icon-upload",
      roles: ["superAdmin", "commonAdmin"],
    },
    children: [
      {
        path: "dataSourceManage",
        component: () => import("@/views/dataConnection/dataSourceManage/Index"),
        name: "DataSourceManage",
        meta: {
          title: "数据源管理",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "businessDataBase",
        component: () => import("@/views/dataConnection/businessDataBase/Index"),
        name: "BusinessDataBase",
        meta: {
          title: "业务数据资源库",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "businessDataBase/importToGraph",
        component: () => import("@/views/dataConnection/businessDataBase/importToGraph/Index"),
        name: "ImportToGraph",
        hidden: true,
        meta: {
          title: "导入图谱",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: '/dataConnection/businessDataBase'
        },
      },
      {
        path: "dataAggregation",
        component: () => import("@/views/dataConnection/dataAggregation/Index"),
        name: "DataAggregation",
        meta: {
          title: "数据汇聚",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "physicalModel",
        component: () => import("@/views/dataConnection/physicalModel/Index"),
        name: "PhysicalModel",
        meta: {
          title: "物理模型",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "dataDictionary",
        component: () => import("@/views/dataConnection/dataDictionary/Index"),
        name: "DataDictionary",
        meta: {
          title: "数据字典",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
    ],
  },
];
